export const myRequest = (options)=>{
  let baseURL = "http://localhost:8088";
   options.method = options.method&&options.method.toUpperCase();
  return new Promise((resolve,reject)=>{
      uni.request({
          url: baseURL+options.url,
          method:options.method||'GET',
          data:options.data||{},
          header:options.header|| {
              // 'custom-header': 'hello' //自定义请求头信息
              'content-type':'application/json'
          },
          success: (res) => {
              /* if(res.statusCode==200){
                  resolve(res.data);
              } */
              resolve(res)
              // this.text = 'request success';
          },
          fail:(err)=>{
              reject(err);
          }
      });
  })
}